package com.gzhu.knowledgeAdmin.controller;

import com.gzhu.knowledgeAdmin.common.result.R;
import com.gzhu.knowledgeAdmin.entity.TRwjgjfT;
import com.gzhu.knowledgeAdmin.service.TRwjgjfTService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author yangminggui
 * @create 2024-02-25 22:59
 */
@RestController
@RequestMapping("knowledgeAdmin/rwjgjf")
public class TRwjgjfTController {

    @Autowired
    private TRwjgjfTService tRwjgjfTService;

    @GetMapping("/getUncheckDataSet")
    public R getUncheckDataSet(){
        List<TRwjgjfT> uncheckDataSet = tRwjgjfTService.getUncheckDataSet();
        return R.ok(uncheckDataSet);
    }

    @GetMapping("/getTaskTimeData")
    public R getTaskTimeData(){
        List<TRwjgjfT> taskTimeData = tRwjgjfTService.getTaskTimeData();
        return R.ok(taskTimeData);
    }
}
